<%@ Control language="C#" Inherits="BIP.Modules.BIPAddEmailToList.ViewBIPAddEmailToList" CodeFile="ViewBIPAddEmailToList.ascx.cs" AutoEventWireup="true"%>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>

<asp:Label ID="lblSubscribeText" runat="server" resourcekey="lblSubscribeText" Text="<p>Subscribe to <em>BIPNews</em> the quarterly 2010BIP newsletter.</br> Delivered direct to your inbox.</p>" Font-Bold="true"></asp:Label>

<div>
<asp:Label ID="EmailAddress" runat="server" resourcekey="EmailAddress" Text="Email Address:" Font-Bold="true"></asp:Label>
    <asp:Panel ID="Panel1" runat="server" DefaultButton="AddEmailBtn">
    
                                        <asp:TextBox ID="txtNewsEmail" runat="server" Width="90" Font-Size="10"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                            ErrorMessage="Please enter your e-mail address" ControlToValidate="txtNewsEmail" Text="*" ValidationGroup="emailNewsletter" ></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                            ErrorMessage="Please enter a valid e-mail address" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtNewsEmail" Text="*" ValidationGroup="emailNewsletter"></asp:RegularExpressionValidator>  
                                        <!---input ID="username" size="8" type="text" disabled="disabled" /--->
                                         <br />
                                        <span id="newsletterOptions" class="newsletterStatus">
                                       <asp:RadioButton ID="LangEng" runat="server" GroupName="Language" Checked="true" /><dnn:label id="lblEnglish" runat="server" ControlName="txtEnglishLang"></dnn:label>
                                       
                                        <asp:RadioButton ID="LangFre" runat="server" AutoPostBack="true"  GroupName="Language" /><dnn:label id="lblFrench" runat="server" ControlName="txtFrenchLang"></dnn:label>
                                        
                                        <asp:RadioButton ID="LangSpan" runat="server" AutoPostBack="true" GroupName="Language" /><dnn:label id="lblSpanish" runat="server" ControlName="txtSpanishLang"></dnn:label>
                                        
                                        <asp:RadioButton ID="LangRus" runat="server" AutoPostBack="true" GroupName="Language" /><dnn:label id="lblRussian" runat="server" ControlName="txtRussinaLang"></dnn:label>
                                        
                                        <asp:RadioButton ID="LangChin" runat="server" AutoPostBack="true" GroupName="Language" /><dnn:label id="lblChinese" runat="server" ControlName="txtChineseLang"></dnn:label>
                                        
                                        <asp:RadioButton ID="LangArabic" runat="server" AutoPostBack="true" GroupName="Language" /><dnn:label id="lblArabic" runat="server" ControlName="txtArabicLang"></dnn:label>
                                        
                                        <asp:RadioButton ID="LangJap" runat="server" AutoPostBack="true" GroupName="Language" /><dnn:label id="lblJapanese" runat="server" ControlName="txtJapaneseLang"></dnn:label>
                                        
                                                                           
                                        </span>
                                        <div id="newsletterStatusDiv" class="newsletterStatus" runat="server" visible="false">
                                            <asp:Label ID="newsletterStatusLbl" resourcekey="newsletterStatusLbl" runat="server" Text="You have been added to our mailing list"></asp:Label>
                                        </div>
                                        <asp:RadioButtonList ID="radLstSubscribe" runat="server" Font-Bold="true">
                                            <asp:ListItem Value="Subscribe" resourcekey="Subscribe" Text="Subscribe" Selected="True" />
                                            <asp:ListItem Value="UnSubscribe" resourcekey="UnSubscribe" Text="Unsubscribe" />
                                        </asp:RadioButtonList>
    
         </asp:Panel>
                                     
    <asp:Button ID="AddEmailBtn" runat="server" resourcekey="AddEmailBtn" onclick="AddEmailBtn_Click" 
        Text="Submit" CausesValidation="true" ValidationGroup="emailNewsletter" />
           
   </div>
     <p id="btnArch">  
    <asp:LinkButton ID="lnkBtnArchive" resourcekey="lnkBtnArchive" runat="server" PostBackUrl="/News/NewsletterArchive/tabid/64/Default.aspx" Text="Archived Newsletters>>"></asp:LinkButton>   
       </p>                                 

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    TypeName="BIP.Modules.BIPAddEmailToList.BIPAddEmailToListController" 
    DataObjectTypeName="BIP.Modules.BIPAddEmailToList.BIPAddEmailToListInfo" 
    DeleteMethod="BIPAddEmailDelete" InsertMethod="BIPAddEmailInsert" 
    OldValuesParameterFormatString="original_{0}" 
    SelectMethod="BIPAddEmailSelectAll">
    <DeleteParameters>
        <asp:Parameter Name="ItemId" Type="Int32" />
    </DeleteParameters>
</asp:ObjectDataSource>


